import request from '@/utils/request'

export default{
  bjxxPageCondition(current, limit, bjxxQuery) {
    return request({
      url: `/h/bjxx/getPagebjxxBytj/${current}/${limit}`,
      method: 'post',
      data: bjxxQuery
    })
  },
  getbjxx(current,limit) {
    return request({
      url: `/h/bjxx/getAllPagebjxxBytj/${current}/${limit}`,
      method: 'get',
    })
  },
  removeById(Id) {
    return request({
        url: `/h/bjxx/deleteById/${Id}`,
        method: 'delete'
    })
},
  exportdata(exportExcel) {
    return request({
        url: `/excel/exportbj`,
        method: 'post',
        data: exportExcel,
        responseType: 'blob'
    })
},

getbjxxById(id) {
  return request({
      url: `/h/bjxx/getbjxxById/${id}`,
      method: 'get',
  })
},
updatebjById(updatebys) {
  return request({
      url: `/h/bjxx/update`,
      method: 'post',
      data: updatebj
  })
},
getBjByXy(department) {
  return request({
      url: `/h/bjxx/getByDepartment/${department}`,
      method: 'get'
  })
},
getXy() {
  return request({
      url: `/h/bjxx/getAllDepartment`,
      method: 'get'
  })
},

save(newbj) {
  return request({
      url: `/h/bjxx/saveOrUpdateOne`,
      method: 'post',
      data: newbj
  })
},


}
